import request from '@/utils/request';

export const login = data =>
    request({
        method: 'POST',
        url: '/frontend/sso/login',
        data
    })

export const register = data =>
    request({
        method: 'POST',
        url: '/frontend/sso/register',
        data
    })


//获取用户信息接口
export const getInfo = data =>
    request({
        method: 'POST',
        url: '/frontend/my/info/',
        data
    })

//修改密码
export const changePwd = data =>
    request({
        method: 'POST',
        url: '/frontend/sso/password/update',
        data
    })

//退出登录
export const out = () =>
    request({
        method: 'POST',
        url: '/frontend/sso/logout',
    })